package com.bjpowernode.app;
import com.bjpowernode.beans.Stu;
public class MyApp10 {
    public static Stu fun1() {
        Stu stu = new Stu();
        try {
            stu.setName("hzj");
            //return会记录stu的地址
            return stu;

        } catch (Exception e) {
            return stu;
        } finally {
            stu.setName("hzj888");
            System.out.println("finally........" + stu);
        }
    }
    public static void main(String[] args) {
        Stu stu = MyApp10.fun1();
        System.out.println("main打印......"+stu);
    }
}
